package com.wz.utils.batch.mapper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

/*@Repository*/
@Component
public class AccountInfoDao {
/*    @Update("update account set stock=#{money} where id=#{accountId}")
    int updateAccountBlance(String accountId, double money);*/
    @Autowired
    private JdbcTemplate jdbcTemplate;

     public int updateAccountBlance(String accountId, double money){
         return jdbcTemplate.update("update account set stock=? where id=?",money,accountId);
     }
}
